package windowFactoryPackage;
import java.util.ArrayList;
import javax.swing.JFrame;

public class tester extends JFrame {
	static boolean UserIsLoggedIn = false;
	static ArrayList<String> categoryNames = new ArrayList<String>();
	static ArrayList<String> keywordNames = new ArrayList<String>();
	static String userNameLogin = "";
	
	
	public static void main(String [] args){
		//get category and keyword names from DATABASE before creating window
		categoryNames.add("Category");
		categoryNames.add("--------");
		categoryNames.add("ALL"); //position (2)
		keywordNames.add("Keyword");
		keywordNames.add("-------");
		keywordNames.add("ALL"); //position (2)
		//ask for DB password before starting
		Credentials.setPassword();
		Query.getCategories();
		Query.getKeywords();
		
		JFrame frame = new SearchWindow();
		frame.setTitle("Welcome Guest");
		frame.setSize(875, 400);
	    frame.setLocationRelativeTo(null);
	    frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
		frame.setVisible(true);
	    frame.setResizable(false);
	}
}
